package com.thinkgem.jeesite.modules.qhq.utils;

import java.util.List;

import com.thinkgem.jeesite.common.utils.SpringContextHolder;
import com.thinkgem.jeesite.modules.qhq.dao.SchoolDao;
import com.thinkgem.jeesite.modules.qhq.entity.School;
import com.thinkgem.jeesite.modules.qhq.entity.SchoolDept;
import com.thinkgem.jeesite.modules.qhq.service.SchoolDeptService;
import com.thinkgem.jeesite.modules.qhq.service.SchoolService;

public class SchoolUtils {
private static SchoolService schoolService=SpringContextHolder.getBean(SchoolService.class);

private static SchoolDeptService schoolDeptService=SpringContextHolder.getBean(SchoolDeptService.class);

/**
 * 查询所有学校信息
 * @param SchoolType
 * @return
 */
public static List<School> getSchoolList() {
	List<School> findAllList = schoolService.findList(new School());
	
	return findAllList;
}


/**
 * 通过ID查询学校名称
 * @param regionType
 * @return
 */
public static Object getSchoolById(String id){
	return schoolService.get(id);
}




/**
 * 查询所有学部信息
 * @param SchoolType
 * @return
 */
public static List<SchoolDept> getSchoolDeptList() {
	List<SchoolDept> findAllList = schoolDeptService.findList(new SchoolDept());
	
	return findAllList;
}

/**
 * 通过ID查询学部名称
 * @param regionType
 * @return
 */
public static Object getSchoolDeptById(String id){
	return schoolDeptService.get(id);
}


}